/*
 * @Author: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @Date: 2023-10-13 20:40:19
 * @LastEditors: 姚沈阳 11500793+yao-shenyang@user.noreply.gitee.com
 * @LastEditTime: 2023-11-06 15:56:23
 * @FilePath: \票务管理\app\ticketing-management\vue-project\src\api\index.ts
 * @Description: 
 * qq1908552310
 */
import { getJson, postJson, putJson, deleteJson } from '@/utils/request'

// 获取车次
export const getTicket = (url: any) => {
    return getJson(url)
}

// 新增车次
export const postTicket = (url: any, data: any) => {
    return postJson(url, data)
}

// 编辑
export const putTicket = (url: any, data: any) => {
    return putJson(url, data)
}

// 删除
export const deleteTicket = (url: any) => {
    return deleteJson(url)
}


// 车站的增删改查

export const getStation = (url: any) => {
    return getJson(url)
}
export const postStation = (url: any, data: any) => {
    return postJson(url, data)
}
export const deleteStation = (url: any) => {
    return deleteJson(url)
}



// 订单的增删改查

export const getOrders = (url: any) => {
    return getJson(url)
}